var buttonNormal : Texture2D;
var buttonHover : Texture2D;
var buttonClick : Texture2D;

function OnMouseEnter()
{
	renderer.material.mainTexture = buttonHover;
	
}

function OnMouseExit()
{
	renderer.material.mainTexture = buttonNormal;
}

function OnMouseDown()
{
	renderer.material.mainTexture = buttonClick;
}

function OnMouseUp()
{
			StaticVars.difficulty = 2;
			StaticVars.piesMade = 0;
			StaticVars.score = 0;
			
			if (StaticVars.mode == 1){
				Application.LoadLevel(3);
			}
			else if (StaticVars.mode == 2){
				Application.LoadLevel(4);
			}
			else {
			//don't do anything
			}
}